package com.cqndt.site.dao;

import com.cqndt.site.entity.TabJournalRecord;
import com.cqndt.site.vo.ConditionVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface TabJournalRecordMapper {
    int deleteByPrimaryKey(Integer id);

    int insertSelective(TabJournalRecord record);

    TabJournalRecord selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(TabJournalRecord record);

    List<TabJournalRecord> listRecords(ConditionVo vo);

    TabJournalRecord getByAccountAndState(String account);

    Integer getMaxPeriodNum(@Param("state") Integer state);

    TabJournalRecord getRecordByPeriodNum(@Param("periodNum") Integer periodNum);

}